﻿@if (Request.IsAuthenticated) {
    <text>
        你好，@User.Identity.Name!
        @Html.ActionLink("修改密码", "ChangePassword", "Account", routeValues: null, htmlAttributes: new { @class = "username", target="mainFrame" })
        @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a href="javascript:if(confirm('确认退出登录？')){document.getElementById('logoutForm').submit()}">退出登录</a>
        }
    </text>
} 